<html>
<head>
<title>Fast and Easy Checkout - Documentation</title>
<style type="text/css">
<!--
body {font-family: Verdana, Arial, Helvetica, sans-serif;}
.style1 {color: #FF0000}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif;}
.style3 {padding: 12px 0px 12px 0px; margin-left: 40px;}
h1 {font-size: 16px;}
h2 {font-size: 14px;}
h3 {font-size: 12px;}
-->
</style>
</head>
<body>
<h1 class="style2">Fast and Easy Checkout for Zen Cart - Documentation</h1>
<h2 class="style2">Author</h2>
<p class="style2">This module was created by Numinix (<a href="http://www.numinix.com" title="Numinix" target="_blank">http://www.numinix.com</a>) as an optimized checkout for Zen Cart.</p>
<h3 class="style2">Support Thread</h3>
<p class="style2"><a href="http://www.numinix.com/forum/viewtopic.php?t=4" title="Fast and Easy Checkout Support Thread" target="_blank">http://www.numinix.com/forum/viewtopic.php?t=4</a></p>
<h3 class="style2">Installation (Zen Cart 1.3.8+)</h3>
<ol class="style2">
  <li><a href="http://blog.rubikintegration.com/2009/08/08/zencart-css-javascript-loader-released/">Install CSS JS Loader by Rubik Integration</a> (requires PHP 5.2+);</li> 
  <li>Upload all files to their respective folders; </li>
  <li>Rename "YOUR_TEMPLATE" folders to your custom template name; </li>
  <li>Copy and paste the install.sql file into ADMIN-&gt;TOOLS-&gt;INSTALL SQL PATCHES to be able to activate or deactivate the one-page checkout feature included with Fast and Easy Checkout for Zen Cart;</li>
</ol>
<h3 class="style2">Installation (Zen Cart 1.3.7)</h3>
<ol class="style2">
  <li>open admin/includes/functions/general.php and add the following before the closing "<strong>?&gt;</strong>":<br />
      <p><code><pre>// get customer comments
  function zen_get_orders_comments($orders_id) {
    global $db;<br />
    $orders_comments_query = "SELECT osh.comments from " .
                              TABLE_ORDERS_STATUS_HISTORY . " osh
                              where osh.orders_id = '" . $orders_id . "'
                              order by osh.date_added
                              limit 1";

    $orders_comments = $db->Execute($orders_comments_query);
    return $orders_comments->fields['comments'];
  }</pre></code></p>
  </li>
  <li>open admin/includes/languages/english/orders.php and add the following before the closing "<strong>?&gt;</strong>":<br />
    <p><code>define('TABLE_HEADING_CUSTOMER_COMMENTS', 'Customer&lt;br /&gt;Comments');</code></p>
  </li>
  <li>If using Tell a Friend Free Shipping, do the following:<br />
      <p>Open includes/classes/shipping.php</p>
      Near the bottom of the page find:<br />
      <pre><code>    if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup') { </pre></code>
      replace with<br />
      <pre><code>    if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup' and $rates[$i]['module'] != 'tellafriend') { </pre></code>

      <p>Also find:</p>
      <pre><code>    if ($rates[$i]['module'] != 'storepickup') { </pre></code>
      <p>and replace with:</p>
      <pre><code>    if ($rates[$i]['module'] != 'storepickup' and $rates[$i]['module'] != 'tellafriend') { </pre></code>
  </li>
  <li>follow steps for 1.3.8a+ install</li>
</ol>
<h2 class="style2">Uninstall</h2>
<ol class="style2">
  <li>Delete all uploaded files; </li>
  <li>Run the uninstall.sql (if you simply want to deactivate but keep the installation, read tips below);</li>
  <li>Remove edits to tpl_main_page.php;</li>
</ol>
 <h3 class="style2">Tips</h3>
 <ul class="style2">
   <li>Fast and Easy Checkout for Zen   Cart is activated by loading an extra_configures file called checkout.php before   the filenames.php file.
     This causes definitions for the checkout links to be   defined to direct customers to the new integrated checkout page. To deactivate   the script without
   running the uninstall.sql and deleting all of the files,   simply rename or delete the file includes/extra_configures/checkout.php. </li>
   <li>To personalize the checkout, you can create your own CSS file and then   edit the classes found within
     includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_default.php. This file contains the layout of the page and can be re-organized by moving the   fieldset blocks to however you want. A file checkout.xss is supplied for you in   recent versions. </li>
   <li>You may also want to redefine the TEXT and ERROR   definitions found in includes/languages/english/YOUR_TEMPLATE/checkout.php; </li>
   <li>If you are using Magic SEO URLs, </li>
   <br />
   in application_top.php find:
 </ul>
 <table cellspacing="1" cellpadding="3" width="90%" align="center" border="1">
  <tbody>
    <tr>
      <td class="style2"><strong>Code:</strong></td>
    </tr>
    <tr>
      <td class="style2">include(DIR_WS_INCLUDES . 'magic_seo_url.php');</td>
    </tr>
  </tbody>
</table>
<div class="style3">and replace with:</div>
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="1">
  <tbody>
    <tr>
      <td class="style2"><strong>Code:</strong></td>
    </tr>
    <tr>
      <td class="style2">if ($_GET['main_page'] != 'checkout') { <br />
        &nbsp;&nbsp;include(DIR_WS_INCLUDES . 'magic_seo_url.php'); <br />
        }</td>
    </tr>
  </tbody>
</table>
<ul class="style2">
  <li>If you want to disable the left and right columns on the checkout, add the following code:</li>
</ul>
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="1">
  <tr>
    <td class="style2"><strong>Code:</strong></td>
  </tr>
  <tr>
    <td class="style2">
      <p>//add page names that you wantto disable left and right columns <br />
        $center_column_only = array('checkout'); // add any other page names here separated by commas, no spaces<br />
        // the following IF   statement can be duplicated/modified as needed to set additional flags <br />
      if (in_array($current_page_base,$center_column_only) ) {<br />
      &nbsp;&nbsp;$flag_disable_right = true; <br />
      &nbsp;&nbsp;$flag_disable_left = true; <br />
      }</p>
      </td>
  </tr>
</table>
<ul>
<li>To use Checkout Without Account, Easy Sign-Up and Login must also be activated.  Otherwise, Checkout Without Account can be installed as a stand-alone product on the normal login system.</li>
</ul>
</body>
</html>
